package com.w7vm.menuweb.entity;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Set;


/**
 * The persistent class for the PratoSys database table.
 * 
 */
@Entity

@NamedQueries({
	@NamedQuery(name="Prato.findPratoByAll", 
			query="SELECT p" +
					" FROM PratoSy p"),
})

@Table(name="PratoSys")
public class PratoSy implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static final String FIND_PRATO_BY_ALL = "Prato.findPratoByAll";


	@Id
	private int idPratoSys;

	@Column(name="Descricao")
	private String descricao;

	//bi-directional many-to-one association to CardapioInfantilWeb
	@OneToMany(mappedBy="pratoSy")
	private Set<CardapioInfantilWeb> cardapioInfantilWebs;

	//bi-directional many-to-one association to CardapioLaCarteWeb
	@OneToMany(mappedBy="pratoSy")
	private Set<CardapioLaCarteWeb> cardapioLaCarteWebs;

    public PratoSy() {
    }

	public int getIdPratoSys() {
		return this.idPratoSys;
	}

	public void setIdPratoSys(int idPratoSys) {
		this.idPratoSys = idPratoSys;
	}

	public String getDescricao() {
		return this.descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Set<CardapioInfantilWeb> getCardapioInfantilWebs() {
		return this.cardapioInfantilWebs;
	}

	public void setCardapioInfantilWebs(Set<CardapioInfantilWeb> cardapioInfantilWebs) {
		this.cardapioInfantilWebs = cardapioInfantilWebs;
	}
	
	public Set<CardapioLaCarteWeb> getCardapioLaCarteWebs() {
		return this.cardapioLaCarteWebs;
	}

	public void setCardapioLaCarteWebs(Set<CardapioLaCarteWeb> cardapioLaCarteWebs) {
		this.cardapioLaCarteWebs = cardapioLaCarteWebs;
	}
	
}